#ifndef __PTGUI_MISC_H__
#define __PTGUI_MISC_H__

int ptgui_strncasecmp(const rt_int8_t *s1, const rt_int8_t *s2, size_t len);

void *ptgui_memset(void *src, int c, rt_size_t n);
void *ptgui_memcpy(void *dst, const void *src, rt_size_t n);
int ptgui_memcmp(const void *dst, const void *src, rt_size_t n);
void *ptgui_memmove(void *dst, const void *src, rt_size_t count);
rt_size_t ptgui_strncmp(const rt_int8_t *cs, const rt_int8_t *ct, rt_size_t count);
rt_size_t ptgui_strlen(const rt_int8_t *src);
rt_int8_t *ptgui_strncpy(rt_int8_t *dest, const rt_int8_t *src, rt_size_t n);
rt_int8_t *ptgui_strdup(const rt_int8_t *str);

void ptgui_snprintf(rt_int8_t *buffer, rt_size_t count, const rt_int8_t *fmt, ...);
void ptgui_sprintf(rt_int8_t *buffer, const rt_int8_t *fmt, ...);

#endif